package ooday05;

public class Dog extends Animal implements Swim{
    Dog(String name, int age, String colour){
        super(name,age,colour);
    }
    void eat(){
        System.out.println(colour+"色的小狗叫"+name+"正在吃骨头，他今年"+age+"岁了");
    }
    public void swim(){
        System.out.println(name+"在游泳");
    }
}
